package main

import (
	"fmt"
)

func main() {
	f := [...]int{1, 2, 3, 4, 5, 6, 7, 8, 9, 0}
	for index, value := range f {
		fmt.Println(index)
		fmt.Println(value)
	}

	sum := 0
	for _, value := range f {
		sum += value
	}
	fmt.Println(sum)
}
